import sys

xmin, xmax, xstep = 0, 570, 16
ymin, ymax, ystep = 0, 285, 22
# train display
D = [[' ' for x in range(xmin,xmax+1,xstep)] for y in range(ymin,ymax+1,ystep)]
for line in sys.stdin:
  toks = line.split()
  if len(toks) < 7:
    continue
  x, y = int(toks[4]), int(toks[5])
  xi, yi = (x-xmin)/xstep, (y-ymin)/ystep
  if toks[2] == "sensor":
    D[yi][xi] = 'E'
  elif toks[2] == "switch":
    D[yi][xi] = 'W'
  elif toks[2] == "stop":
    D[yi][xi] = 'T'

for row in D:
  print ''.join(row)
